clerks = {
    "0001": {
        "age": 20,
        "name": "贾宝玉",
        "entry_time": "2011-11-11",
        "salary": 10000
    },
    "0002": {
        "age": 21,
        "name": "林黛玉",
        "entry_time": "2012-11-11",
        "salary": 20000
    },
    "0010": {
        "age": 22,
        "name": "薛宝钗",
        "entry_time": "2013-11-11",
        "salary": 30000
    }
}

# 通过员工号0010获取员工信息
print(
    f"员工号0010的信息为：{clerks['0010']["age"]} {clerks['0010']["name"]} {clerks['0010']["entry_time"]} {clerks['0010']["salary"]}")

# 以根据需要，可以动态的增加、删除员工，请演示添加和删除一个员工
# 增加:(员工号:0020，年龄:3日，名字:jack，入职时间:2020-08-10，薪水:6000)

clerks["0020"] = {
    "age": 3,
    "name": "jack",
    "entry_time": "2020-08-10",
    "salary": 6000
}
print(clerks)

# 删除0001的员工
del clerks["0001"]
print(clerks)

# 修改员工信息
clerks["0010"]["name"] = "haha"
clerks["0010"]["salary"] = 5000

print("---------------------------------------------------")
# 遍历所有的员工，把所有员工的薪水增加20%
for key in clerks:
    clerks[key]["salary"] += clerks[key]["salary"] * 0.2
print(clerks)
